myApp.controller('asset_delete', function ($rootScope, $scope, $uibModalInstance, httpService, formBoxData) {
	
	/*关闭的图片*/
	$scope.closeImg={'img':'images/close-default.png','defaultImg':'images/close-default.png','downImg':'images/close-btndown.png','hoverImg':'images/close-hover.png'};
	$scope.title = formBoxData.title;
    $scope.content = formBoxData.content;

    // 确认
	$scope.ok = function () {
        httpService.postRequest(formBoxData.modalApi, $rootScope.select_list_index).then(function(res){
            formBoxData.confirmFunc();
        	$scope.cancel();
        });
	};
	// 取消
	$scope.cancel = function () {
		$uibModalInstance.dismiss('cancel');
	};
});